import request from '@/utils/request'
//获取部门负责人的信息
export const getEmployees=()=>request.get('/sys/user/simple')
//获取所有员工的列表
export const getEmployeeList=(params)=>request.get('/sys/user',{params})
//新增员工
export const addEmployees=data=>request.post('/sys/user',data)
//删除员工
export const delEmployees=id=>request.delete(`/sys/user/${id}`)
//导入员工
export const importEmployee=data=>request.post('/sys/user/batch',data)
//修改员工信息
export const saveUserDetailById=data=>request.put(`/sys/user/${data.id}`,data)
//获取员工岗位基本信息
export const getJobDetail=id=>request.get(`/employees/${id}/jobs`)
//员工分配权限保存
export const assignRoles=data=>request.put('/sys/user/assignRoles',data)
